package cn.zyx.mongodemo.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;

import java.util.Date;

/**
 * @Description : TODO
 * @Author : ZYX
 * @Date : 2022/7/28 22:05
 * @Version : 1.0
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class StudentDo {

    @Id// 必须指定id列
    private String studentId;

    private String studentName;

    private Integer studentAge;

    private Double studentScore;

    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    private Date studentBirthday;

}
